package car.aistar.service.impl;

import car.aistar.dao.TqxCarInfoDao;
import car.aistar.dto.BrandAndPrice;
import car.aistar.dto.TqxCarInfo;
import car.aistar.dto.TqxCarSelect;
import car.aistar.entity.PriceCut;
import car.aistar.service.TqxCarInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 本类用来：
 *
 * @ClassName TqxCarInfoServiceImpl
 * @Author tqx
 * @Date 2020/10/2 16:36
 */
@Service("tqxCarInfoService")
public class TqxCarInfoServiceImpl implements TqxCarInfoService {
    @Resource
    TqxCarInfoDao tqxCarInfoDao;
    @Override
    public List<TqxCarInfo> findCarInfo(TqxCarSelect tqxCarSelect) {
        return tqxCarInfoDao.findCarInfo(tqxCarSelect);
    }

    @Override
    public List<TqxCarInfo> findNes(TqxCarSelect tqxCarSelect) {
        return tqxCarInfoDao.findNew(tqxCarSelect);
    }

    @Override
    public List<BrandAndPrice> findCarPrice() {
        return  tqxCarInfoDao.findCarPrice();
    }

    @Override
    public List<PriceCut> findPriceCut(Integer carId) {
        return tqxCarInfoDao.findPriceCut(carId);
    }
}
